package com.power.leetcode;

import java.util.Arrays;
import java.util.Random;
import java.util.Stack;

/**
 * @description:
 * @author: jiangnan
 * @time: 2021/6/7 7:21 下午
 */
//给定一个列表 temperatures = [73, 74, 75, 71, 69, 72, 76, 73]，你的输出应该是 [1, 1, 4, 2, 1, 1, 0, 0]。
//
//

public class Solution_739 {
    public static void main(String[] args) {
        int[] temperature = new int[20];
        for (int i = 0; i < 20; i++) {
            temperature[i] = new Random().nextInt(70) + 30;
        }
        System.out.println(Arrays.toString(temperature));
    }

    public int[] dailyTemperatures(int[] temperatures) {
        int[] result = new int[temperatures.length];
        Stack stack = new Stack();
        int tmp = Integer.MAX_VALUE - 7;
        for (int i = 0; i < temperatures.length; i++) {
            if (temperatures.length > 0) {
                stack.push(temperatures[i]);
            }
        }

        return new int[10];
    }

}
